Vulnerability Scanning Solutions, LLC.
Home
Our Process
Residential
Corporate
What We Scan For
Sample Report
Client List
Terms
Contact Us
What We Scan For
Family: Gentoo Local Security Checks --> Category: infos

[GLSA-200409-05] Gallery: Arbitrary command execution Vulnerability Scan


Vulnerability Scan Summary
Gallery: Arbitrary command execution

Detailed Explanation for this Vulnerability Test
The remote host is affected by the vulnerability described in GLSA-200409-05
(Gallery: Arbitrary command execution)


The upload handling code in Gallery places uploaded files in a temporary
directory. After 30 seconds, these files are deleted if they are not valid
images. However, since the file exists for 30 seconds, a carefully crafted
script could be initiated by the remote attacker during this 30 second
timeout. Note that the temporary directory has to be located inside the
webroot and a possible hacker needs to have upload rights either as an
authenticated user or via "EVERYBODY".

Impact

A possible hacker could run arbitrary code as the user running PHP.

Workaround

There are several workarounds to this vulnerability:
Make sure that your temporary directory is not contained in the
webroot
by default it is located outside the webroot.
Disable upload rights to all albums for "EVERYBODY"
upload
is disabled by default.
Disable debug and dev mode
these settings are disabled by
default.
Disable allow_url_fopen in php.ini.

References:
http://archives.neohapsis.com/archives/fulldisclosure/2004-08/0757.html
http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=134&mode=thread&order=0&thold=0


Solution:
All Gallery users should upgrade to the latest version:
# emerge sync
# emerge -pv ">=www-apps/gallery-1.4.4_p2"
# emerge ">=www-apps/gallery-1.4.4_p2"


Threat Level: Medium


Click HERE for more information and discussions on this network vulnerability scan.

VSS, LLC.

P.O. Box 827051

Pembroke Pines, FL 33082-7051

Vulnerability Scanning Solutions, LLC.